<?php include('inc/functions.php'); ?>
<?php include('Gear/data.php'); ?>
<?php $conn = getConnection();
	  $result = $conn->query('SELECT * FROM 2011_Gear');
?>

<?php $section = 'Gear'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Core[nerd]-Gear</title>
<link href="inc/main.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="container">

<?php include('inc/nav.php'); ?>
<h1>Gear</h1>
<div id="gear">
<ul>
<?php
while($rs = $result->fetch_assoc()) 
{
	$url = $rs['Image_url'];
?>
<li>
<div id="gear-info">
	<?php echo '<img src="'.$url.'" />' ?>
    	<h3><?php echo $rs['Item']; ?></h3>
    	<p>Price: $<?php echo $rs['Price']; ?>
    		<form action="addToCart.php" method="post">
    		<input id="submit" type="submit" value="add to cart" />
    		</form>
    	</p>
</div>
</li>
<?php
}
?>
</ul>
</div>
</div>
</body>

</html>
